package cn.iocoder.yudao.module.train.controller.admin.viplevel.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 会员等级设定 Response VO")
@Data
@ExcelIgnoreUnannotated
public class VipLevelRespVO {

    @Schema(description = "会员等级ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8433")
    @ExcelProperty("会员等级ID")
    private Integer id;

    @Schema(description = "等级名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("等级名称")
    private String levelName;

    @Schema(description = "会员时长")
    @ExcelProperty("会员时长")
    private String duration;

    @Schema(description = "会员价格", example = "26130")
    @ExcelProperty("会员价格")
    private BigDecimal price;

    @Schema(description = "会员权益说明")
    @ExcelProperty("会员权益说明")
    private String vipRights;

    @Schema(description = "会员启用状态（0-未启用，1-已启用）", example = "2")
    @ExcelProperty(value = "会员启用状态（0-未启用，1-已启用）", converter = DictConvert.class)
    @DictFormat("train_vip_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
